
import Layout from '@/views/layout/layout.vue'

/**
 * meta除了原生参数外可配置的参数:
 * meta: {
 *  title: '页面标题',
 *  hideInMenu: (false) 设为true后在左侧菜单不会显示该页面选项
 *  icon: (-) 该页面在左侧菜单、面包屑和标签导航处显示的图标，如果是自定义图标，需要在图标名称前加下划线'_'
 *  auth: (system:role:ui) 可访问该页面的权限
 * }
 */


const RouterMaps = [
    {
        path: '*',
        name: '_',
        component: Layout,
        redirect: '/main',
        children: [
            {
                path: 'main',
                name: '首页',
                meta: {tabbarIndex: 0},
                component: () => import('@/views/main/main.vue')
            },
            {
                path: 'weitao',
                name: '微淘',
                meta: {tabbarIndex: 1},
                component: () => import('@/views/weitao/weitao.vue')
            },
            {
                path: 'message',
                name: '消息',
                meta: {tabbarIndex: 2},
                component: () => import('@/views/message/message.vue')
            },
            {
                path: 'shopping_cart',
                name: '购物车',
                meta: {tabbarIndex: 3},
                component: () => import('@/views/shopping_cart/shopping_cart.vue')
            },
            {
                path: 'my',
                name: '我的淘宝',
                meta: {tabbarIndex: 4},
                component: () => import('@/views/center/center.vue')
            }
        ]
    },

    {
        path: '/meishi',
        name: '美食',
        meta: {tabbarIndex: 0},
        component: () => import('@/views/meishi/meishi.vue')
    }
]


export default [
    ...RouterMaps
]